package com.sip.db.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "tbl_device")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeviceEntity {
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    Long id;
	
	@Column(name="device_id")
	String deviceId;
	@Column(name="ip")
	String ip;
	@Column(name="port")
	Integer port;
	/***
	 * UDP
	 * TCP
	 */
	@Column(name="transport")
	String transport;
	@Column(name="address")
	String address;
	@Column(name="heart_time")
	Timestamp heartTime;
}
